package org.ikastola

import ikastola.Constants;

import java.util.Date;

/**
 * Representa el % de interes mensual por atraso en el pago de tarifas
 * 
 * hasta el momento solo aplica para cuotas
 * 
 * @author mariano
 *
 */
class FeeInter {

	Double percent
	String description
	Fee fee
	Integer deleted
	Date classCreated
	Date classUpdated
	
	static constraints = {
		percent blank: false
		description blank:false
		deleted blank: false
		classCreated nullable: true
		classUpdated nullable: true
		fee nullable: true //si es null aplica sobre la deuda que tenga el alumno
	}
	
	def static list() {
		return findAllByDeleted(Constants.NOT_DELETED)
	}

}
